<!-- apps/frontend/modules/job/templates/indexSuccess.php -->

<?php use_stylesheet('jobs.css') ?>
<div id="jobs">
	 <table class="jobs">
  <thead>
    <tr>
      <th align=left class="hlocation">Location</th>
      <th align=left>Position</th>
      <th align=left>Company</th>
      <?php if (sfConfig::get('app_environment') == 'dev' ) {?><th align=left>Expires</th> <?php } ?>
      
    </tr>
  </thead>
  <tbody>
			<?php foreach ($jobeet_jobs as $i => $job): ?>
			<tr class="<?php echo fmod($i, 2) ? 'even' : 'odd' ?>">
				 <td class="location"><?php echo $job->getLocation() ?></td>
				 <td class="position">
						<a href="<?php echo
							//url_for('job/show?id='.$job->getId())
							//url_for('job/show?id='.$job->getId().'&company='.$job->getCompany(). '&location='.$job->getLocation().'&position='.$job->getPosition())
							//An internal URI can also be expressed as an array:
							//url_for(array( 	'module' => 'job', 	'action' => 'show', 	'id' => $job->getId(), 	'company' => $job->getCompany(), 	'location' => $job->getLocation(), 	'position' => $job->getPosition(),))
							//url_for(array('sf_route' => 'job_show_user', 'sf_subject' => $job))
							url_for('job_show_user', $job)

						?>"> <?php echo $job->getPosition() ?>	</a>
				 </td>
				 <td class=  "company"><?php echo $job->getCompany() ?></td>
	       <?php if (sfConfig::get('app_environment') == 'dev' ) {?><td class="createdAt"><?php echo $job->getExpiresAt() ?></td> <?php } ?>
			</tr>
			<?php endforeach ?>
		</tbody>
	</table>
</div>